<?php get_header(); ?>
<div class="row" style="margin:0px;width:100%;height:100%;padding-top:50px">
	<div class="billboards-left t-5 yscroll collapse in col-md-4" id="demo">
		<div id="carousel-example-generic" class="carousel slide" data-ride="carousel" >
			<div class="carousel-inner" role="listbox">
				<?php $flag2 = true; ?>
				<?php 
					$ii = 1;
					while(true):
						$flag = get_option("lb-ad".$ii);
						$flag1 = get_option('lb-ad'.$ii.'-link');
						if($flag):
				?>
				<div class="item <?= $flag2?'active':'' ?>">
					<a target="_blank" href="<?= $flag1; ?>"><img class="thumb" src="<?php echo get_bloginfo("template_url") ?>/timthumb.php?src=<?php echo $flag ?>&h=185&w=408&q=90&zc=1&ct=1" alt="<?php the_title(); ?>" /></a>
					<div class="carousel-caption" style="bottom:0px;padding-bottom: 0px;text-shadow: 0 1px 7px rgba(0,0,0,.9);">
						<h4><?php echo get_option('lb-ad'.$ii.'-text'); ?></h4>
					</div>
				</div>
				<?php 
					$flag2 = false;
					else:
					    break;
						endif;
					$ii++;
					endwhile;
				?>
			</div>
			<a class="left carousel-control" style="background-image:none" href="#carousel-example-generic" role="button" data-slide="prev">
				<span class="glyphicon glyphicon-chevron-left"></span>
				<span class="sr-only">Previous</span>
			</a>
			<a class="right carousel-control" style="background-image:none" href="#carousel-example-generic" role="button" data-slide="next">
				<span class="glyphicon glyphicon-chevron-right"></span>
				<span class="sr-only">Next</span>
			</a>
		</div>
		<ul class="list-group">
			<li class="list-group-item ad1">zhuanyunhu.com 优质娱乐城担保、推荐，输钱可以得到10%-30%现金转账</li>
			<?php 
					$ii = 1;
					while(true):
						$flag = get_option("left-ad".$ii);
						$flag1 = get_option('left-ad'.$ii.'-link');
						if($flag):
			?>
			<li class="list-group-item ad">
				<ul>
					<li>
						<?php echo $ii; ?>
					</li>
					<li>
						<img class="con" src="<?php echo get_template_directory_uri() ?>/img/cn.jpg">
					</li>
					<li>
						<a target="_Blank" href="<?php echo $flag1; ?>"><img class="ad-img" src="<?php echo get_bloginfo("template_url") ?>/timthumb.php?src=<?php echo $flag ?>&h=120&w=280&q=90&zc=1&ct=1" alt="1"></a>
					</li>
					<li>
						<?php echo get_option('left-ad'.$ii.'-text'); ?>
					</li>
					<li style="float:right;padding-top:7px;">
						<a target="_Blank" href="<?php echo $flag1; ?>"><i class="glyphicon glyphicon-share-alt"></i></a>
					</li>
				</ul>
			</li>
			<?php else:
					    break;
						endif;
						$ii++;
						endwhile;
					 ?>
		</ul>
	</div>
	<!--中间栏论坛-->
	<div class="main yscroll col-md-8" style="padding:0px">
		<div style="padding:0px 15px">
			<div class="top-ad-box t-5">
				<a target="_Blank" href="<?php echo get_option('top-ad-link'); ?>"><img src="<?php echo get_option('top-ad'); ?>"></a>
			</div>
			<?php if(!bbp_is_single_topic() && !bbp_is_user_home() ): ?>
			<!--标签页-->
			<div class="bbs-tabs t-5 pull-left">
				<div class="list-group">
					<div class="list-group-item billboards-top">
						<h3 class="text-indent2">关于转运虎</h3>
						<p class="text-indent2"><?php echo get_option('about') ?></p>
					</div>
					<br>
					<p>公告：公告1 公告2 公告3</p>
					<p>本区管理员：管理员1 管理员2 管理员3</p>
				</div>
				<ul id="myTab" class="nav nav-tabs">
					<li class="<?= bbp_get_topic_forum_title()=='pt交流'?'active':''; ?>"><a href="?forum=pt交流">PT交流</a></li>
					<li class="<?= bbp_get_topic_forum_title()=='主版块'?'active':''; ?>"><a href="?forum=主版块">综合讨论</a></li>
					<li><a href="#attention" data-toggle="tab">推荐关注</a></li>
					<li><a href="#lable" data-toggle="tab">我的标签</a></li>
					<li class="<?= bbp_get_topic_forum_title()=='技术交流'?'active':''; ?>"><a href="?forum=技术交流">技术交流</a></li>
				</ul>
				<div id="myTabContent" class="tab-content">
					<div class="tab-pane fade in active" id="topic">
						<?php endif; ?>
						<div id="primary" class="site-content">
							<div id="content" role="main">
								<?php while ( have_posts() ) : the_post(); ?>
								<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
									<header class="entry-header">
									</header>
									<div class="entry-content">
										<?php the_content(); ?>
									</div>
								</article>
								<?php endwhile;?>
							</div>
						</div>
						<?php if(!bbp_is_single_topic()  && !bbp_is_user_home()): ?>
					</div>
					<!--推荐关注tab-->
					<div class="tab-pane fade" id="attention">
						<div class="list-group">
							<div class="list-group-item">
								<h4>大杂烩牛人库 <button type="button" class="btn btn-primary">more</button></h4>
							</div>
							<div class="list-group-item">
								<h5>本区达人</h5>
								<div class="row">
									<div class="expert">
										<div class="thumbnail">
											<img src="<?php echo get_template_directory_uri() ?>/img/1.jpg" class="img-circle" alt="头像">
											<div class="caption">
												<label><input type="checkbox" name="" /> &nbsp达人</label>
											</div>
										</div>
									</div>
									<div class="expert">
										<div class="thumbnail">
											<img src="<?php echo get_template_directory_uri() ?>/img/1.jpg" class="img-circle" alt="头像">
											<div class="caption">
												<label><input type="checkbox" name="" /> &nbsp达人</label>
											</div>
										</div>
									</div>
									<div class="expert">
										<div class="thumbnail">
											<img src="<?php echo get_template_directory_uri() ?>/img/1.jpg" class="img-circle" alt="头像">
											<div class="caption">
												<label><input type="checkbox" name="" /> &nbsp达人</label>
											</div>
										</div>
									</div>
									<div class="expert">
										<div class="thumbnail">
											<img src="<?php echo get_template_directory_uri() ?>/img/1.jpg" class="img-circle" alt="头像">
											<div class="caption">
												<label><input type="checkbox" name="" /> &nbsp达人</label>
											</div>
										</div>
									</div>
									<div class="expert">
										<div class="thumbnail">
											<img src="<?php echo get_template_directory_uri() ?>/img/1.jpg" class="img-circle" alt="头像">
											<div class="caption">
												<label><input type="checkbox" name="" /> &nbsp达人</label>
											</div>
										</div>
									</div>
								</div>
								<p>
									<label><input type="checkbox" name="" />全选</label>
									<button type="button" class="btn btn-success">关注已选</button>
								</p>
							</div>
							<div class="list-group-item">
								<h5>名人堂</h5>
								<div class="row">
									<div class="expert">
										<div class="thumbnail">
											<img src="<?php echo get_template_directory_uri() ?>/img/1.jpg" class="img-circle" alt="头像">
											<div class="caption">
												<label><input type="checkbox" name="" /> &nbsp名人</label>
											</div>
										</div>
									</div>
									<div class="expert">
										<div class="thumbnail">
											<img src="<?php echo get_template_directory_uri() ?>/img/1.jpg" class="img-circle" alt="头像">
											<div class="caption">
												<label><input type="checkbox" name="" /> &nbsp名人</label>
											</div>
										</div>
									</div>
									<div class="expert">
										<div class="thumbnail">
											<img src="<?php echo get_template_directory_uri() ?>/img/1.jpg" class="img-circle" alt="头像">
											<div class="caption">
												<label><input type="checkbox" name="" /> &nbsp名人</label>
											</div>
										</div>
									</div>
									<div class="expert">
										<div class="thumbnail">
											<img src="<?php echo get_template_directory_uri() ?>/img/1.jpg" class="img-circle" alt="头像">
											<div class="caption">
												<label><input type="checkbox" name="" /> &nbsp名人</label>
											</div>
										</div>
									</div>
									<div class="expert">
										<div class="thumbnail">
											<img src="<?php echo get_template_directory_uri() ?>/img/1.jpg" class="img-circle" alt="头像">
											<div class="caption">
												<label><input type="checkbox" name="" /> &nbsp名人</label>
											</div>
										</div>
									</div>
								</div>
								<p>
									<label><input type="checkbox" name="" />全选</label>
									<button type="button" class="btn btn-success">关注已选</button>
								</p>
							</div>
							<div class="list-group-item">
								<h5>本区管理员</h5>
								<div class="row">
									<div class="expert">
										<div class="thumbnail">
											<img src="<?php echo get_template_directory_uri() ?>/img/1.jpg" class="img-circle" alt="头像">
											<div class="caption">
												<label><input type="checkbox" name="" /> &nbsp管理员</label>
											</div>
										</div>
									</div>
									<div class="expert">
										<div class="thumbnail">
											<img src="<?php echo get_template_directory_uri() ?>/img/1.jpg" class="img-circle" alt="头像">
											<div class="caption">
												<label><input type="checkbox" name="" /> &nbsp管理员</label>
											</div>
										</div>
									</div>
									<div class="expert">
										<div class="thumbnail">
											<img src="<?php echo get_template_directory_uri() ?>/img/1.jpg" class="img-circle" alt="头像">
											<div class="caption">
												<label><input type="checkbox" name="" /> &nbsp管理员</label>
											</div>
										</div>
									</div>
									<div class="expert">
										<div class="thumbnail">
											<img src="<?php echo get_template_directory_uri() ?>/img/1.jpg" class="img-circle" alt="头像">
											<div class="caption">
												<label><input type="checkbox" name="" /> &nbsp管理员</label>
											</div>
										</div>
									</div>
									<div class="expert">
										<div class="thumbnail">
											<img src="<?php echo get_template_directory_uri() ?>/img/1.jpg" class="img-circle" alt="头像">
											<div class="caption">
												<label><input type="checkbox" name="" /> &nbsp管理员</label>
											</div>
										</div>
									</div>
								</div>
								<p>
									<label><input type="checkbox" name="" />全选</label>
									<button type="button" class="btn btn-success">关注已选</button>
								</p>
							</div>
						</div>
					</div>
					<!--我的标签-->
					<div class="tab-pane fade" id="lable">
						<div class="list-group">
							<div class="list-group-item label-choose">
								<h4> 我的标签 <span class="label label-info">（请选择您的兴趣，便于为您推荐对应的内容）</span></h4>
								<button type="button" class="btn btn-primary pull-right">更多</button>
							</div>
							<div class="list-group-item">
								<h4>近期最热</h4>
								<button type="button" class="btn btn-default">段子</button>
								<button type="button" class="btn btn-primary">吐槽</button>
								<button type="button" class="btn btn-success">英雄联盟</button>
								<button type="button" class="btn btn-info">奇葩</button>
								<button type="button" class="btn btn-warning">魔兽世界</button>
								<button type="button" class="btn btn-danger">公益</button>
							</div>
							<div class="list-group-item">
								<h4>最多订阅</h4>
								<ul class="nav nav-pills">
									<li><a href="#">段子 <span class="badge">15590</span></a></li>
									<li><a href="#">美食 <span class="badge">123131</span></a></li>
									<li><a href="#">神回复 <span class="badge">12</span></a></li>
									<li><a href="#">吐槽<span class="badge">7567</span></a></li>
									<li><a href="#">吃货<span class="badge">675</span></a></li>
								</ul>
							</div>
							<div class="list-group-item">
								<h4>最多订阅</h4>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
		<!--右边栏-->
		<div class="billboards-right t-5 pull-left">
			<div class="list-group">
				<div class="list-group-item  presentation"><?php echo get_option('right-top') ?></div>
				<div class="list-group-item">
					<a class="qq" href="<?php echo get_option('qq-1') ?>"><img src="<?php echo get_template_directory_uri() ?>/img/QQ.jpg"/></a>
					<a class="qq" href="<?php echo get_option('qq-2') ?>"><img src="<?php echo get_template_directory_uri() ?>/img/QQ.jpg"/></a>
					<a class="qq" href="<?php echo get_option('qq-3') ?>"><img src="<?php echo get_template_directory_uri() ?>/img/QQ.jpg"/></a>
					<a class="qq" href="<?php echo get_option('qq-4') ?>"><img src="<?php echo get_template_directory_uri() ?>/img/QQ.jpg"/></a>
				</div>
				<?php 
					$ii = 1;
					while(true):
						$flag = get_option("right-ad".$ii);
						$flag1 = get_option('right-ad'.$ii.'-link');
						if($flag):
					?>
				<div class="list-group-item">
					<?php echo get_option("right-ad".$ii.'-text'); ?>
					<a href="<?php echo $flag1; ?>"><img width="90%" src="<?php echo get_bloginfo("template_url") ?>/timthumb.php?src=<?php echo $flag ?>&h=60&w=140&q=90&zc=1&ct=1"></a>
				</div>
				<?php else:
					    break;
						endif;
						$ii++;
						endwhile;
					 ?>
			</div>
		</div>
		<?php endif; ?>
		<footer class="bottom-footer">
			<br>
			<br>
			<br>
			<small><a href="#">关于</a> | <a href="#">官方微博</a> | <a href="#">联系我们</a> | <a href="#">地方合作</a> | <a href="#">诚聘英才</a> | <a href="#">营销中心</a> | <a href="#">服务条款</a> | <a href="#">意见反馈</a> | <a href="#">客服中心</a></small><br><br>
			<small>CopyRight©2016 Inc.All Right Reserved 转运虎 版权所有</small>
		</footer>
	</div>
</div>
</div>
<?php get_footer(); ?>